#ifndef _AUDIO_PLAYER_H_
#define _AUDIO_PLAYER_H_
#include <stdint.h>

typedef int(*audio_player_write_handler_t)(const int16_t* data, int samples);

typedef void(*audio_player_play_start_cb_t)(int state);
typedef void(*audio_player_play_finish_cb_t)(int state);

void audio_player_play(const char* path,
        audio_player_write_handler_t write_handle,
        audio_player_play_start_cb_t start_cb,
        audio_player_play_finish_cb_t finish_cb
        );

void audio_player_stop(void);

#endif